

/* First created by JCasGen Mon Mar 28 12:51:53 CEST 2011 */
package ia1011.zanzibar.chaos.type;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;

import org.apache.uima.jcas.tcas.Annotation;
import org.apache.uima.jcas.cas.StringArray;


/** A Lemma represents an morphosyntactic and semantic interpretation (generally obtained in a dictionary) of a token or a token span.
 * Updated by JCasGen Mon Mar 28 12:52:46 CEST 2011
 * XML source: /home/berardino/universita/IA/progetti_IA/Zanzibar/desc/Chaos/TypeSystemDescriptors/ChaosUimaTypeSystem.xml
 * @generated */
public class UimaLemma extends Annotation {
  /** @generated
   * @ordered 
   */
  public final static int typeIndexID = JCasRegistry.register(UimaLemma.class);
  /** @generated
   * @ordered 
   */
  public final static int type = typeIndexID;
  /** @generated  */
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected UimaLemma() {}
    
  /** Internal - constructor used by generator 
   * @generated */
  public UimaLemma(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public UimaLemma(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** @generated */  
  public UimaLemma(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }   

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {}
     
 
    
  //*--------------*
  //* Feature: id

  /** getter for id - gets 
   * @generated */
  public int getId() {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_id == null)
      jcasType.jcas.throwFeatMissing("id", "ia1011.zanzibar.chaos.type.UimaLemma");
    return jcasType.ll_cas.ll_getIntValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_id);}
    
  /** setter for id - sets  
   * @generated */
  public void setId(int v) {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_id == null)
      jcasType.jcas.throwFeatMissing("id", "ia1011.zanzibar.chaos.type.UimaLemma");
    jcasType.ll_cas.ll_setIntValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_id, v);}    
   
    
  //*--------------*
  //* Feature: surface

  /** getter for surface - gets 
   * @generated */
  public String getSurface() {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_surface == null)
      jcasType.jcas.throwFeatMissing("surface", "ia1011.zanzibar.chaos.type.UimaLemma");
    return jcasType.ll_cas.ll_getStringValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_surface);}
    
  /** setter for surface - sets  
   * @generated */
  public void setSurface(String v) {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_surface == null)
      jcasType.jcas.throwFeatMissing("surface", "ia1011.zanzibar.chaos.type.UimaLemma");
    jcasType.ll_cas.ll_setStringValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_surface, v);}    
   
    
  //*--------------*
  //* Feature: kind

  /** getter for kind - gets 
   * @generated */
  public String getKind() {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_kind == null)
      jcasType.jcas.throwFeatMissing("kind", "ia1011.zanzibar.chaos.type.UimaLemma");
    return jcasType.ll_cas.ll_getStringValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_kind);}
    
  /** setter for kind - sets  
   * @generated */
  public void setKind(String v) {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_kind == null)
      jcasType.jcas.throwFeatMissing("kind", "ia1011.zanzibar.chaos.type.UimaLemma");
    jcasType.ll_cas.ll_setStringValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_kind, v);}    
   
    
  //*--------------*
  //* Feature: morphologicalFeatures

  /** getter for morphologicalFeatures - gets 
   * @generated */
  public String getMorphologicalFeatures() {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_morphologicalFeatures == null)
      jcasType.jcas.throwFeatMissing("morphologicalFeatures", "ia1011.zanzibar.chaos.type.UimaLemma");
    return jcasType.ll_cas.ll_getStringValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_morphologicalFeatures);}
    
  /** setter for morphologicalFeatures - sets  
   * @generated */
  public void setMorphologicalFeatures(String v) {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_morphologicalFeatures == null)
      jcasType.jcas.throwFeatMissing("morphologicalFeatures", "ia1011.zanzibar.chaos.type.UimaLemma");
    jcasType.ll_cas.ll_setStringValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_morphologicalFeatures, v);}    
   
    
  //*--------------*
  //* Feature: wordsenses

  /** getter for wordsenses - gets 
   * @generated */
  public StringArray getWordsenses() {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_wordsenses == null)
      jcasType.jcas.throwFeatMissing("wordsenses", "ia1011.zanzibar.chaos.type.UimaLemma");
    return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_wordsenses)));}
    
  /** setter for wordsenses - sets  
   * @generated */
  public void setWordsenses(StringArray v) {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_wordsenses == null)
      jcasType.jcas.throwFeatMissing("wordsenses", "ia1011.zanzibar.chaos.type.UimaLemma");
    jcasType.ll_cas.ll_setRefValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_wordsenses, jcasType.ll_cas.ll_getFSRef(v));}    
    
  /** indexed getter for wordsenses - gets an indexed value - 
   * @generated */
  public String getWordsenses(int i) {
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_wordsenses == null)
      jcasType.jcas.throwFeatMissing("wordsenses", "ia1011.zanzibar.chaos.type.UimaLemma");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_wordsenses), i);
    return jcasType.ll_cas.ll_getStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_wordsenses), i);}

  /** indexed setter for wordsenses - sets an indexed value - 
   * @generated */
  public void setWordsenses(int i, String v) { 
    if (UimaLemma_Type.featOkTst && ((UimaLemma_Type)jcasType).casFeat_wordsenses == null)
      jcasType.jcas.throwFeatMissing("wordsenses", "ia1011.zanzibar.chaos.type.UimaLemma");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_wordsenses), i);
    jcasType.ll_cas.ll_setStringArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((UimaLemma_Type)jcasType).casFeatCode_wordsenses), i, v);}
  }

    